//
//  WSJTabBarController.m
//  WSJBaseProject
//
//  Created by wsj2015 on 2016/12/1.
//  Copyright © 2016年 wsj2015. All rights reserved.
//

#import "WSJTabBarController.h"
#import "WSJNavController.h"
#import "WSJLoginVC.h"
#import "WSJMeVC.h"

@interface WSJTabBarController ()

@end

@implementation WSJTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self setupChildVCS];
    
    self.view.backgroundColor = [UIColor whiteColor];
  

    
    
}
+ (void)load {
    
    // 对item 标题的大小 颜色 设置
    UITabBarItem *item = [UITabBarItem appearanceWhenContainedIn:[self class], nil];
    [item setTitleTextAttributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:11],NSForegroundColorAttributeName:[UIColor grayColor]} forState:UIControlStateNormal];
    UIColor *color = kMainColor;
    
    [item setTitleTextAttributes:@{NSForegroundColorAttributeName:color} forState:UIControlStateSelected];
    
}
- (void)setupChildVCS{
  
    WSJMeVC *vc = [WSJMeVC new];
    
    WSJNavController *meNav = [[WSJNavController alloc] initWithRootViewController:vc];
    
    
    meNav.tabBarItem.title = @"我的";
    meNav.tabBarItem.image =  [UIImage imageNamed:@"我的灰"];
    meNav.tabBarItem.selectedImage = [[UIImage imageNamed:@"我的蓝"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

    self.viewControllers = @[meNav];
    
  
}



@end
